import RequestHttp from "../../utils/request";
import { Hero, HeroDetail } from "../type/hero";

export const getHeroListAPI = (params: object) => RequestHttp.get<Hero[]>("/api/lol/search", params)

/***
 * 获取英雄详情
 * **/
export const getHeroDetailAPI = (params: object) => RequestHttp.get<HeroDetail>("/api/lol/info", params)